Ruby implementation of k-dimensional tree algorithm

Does anybody know ruby implementation of k-dimensional tree algorithm?

I tried GitHub - gurgeous/kdtree: Blazingly fast, native 2d kdtree. but it doesn’t return accurate results. I cross checked the results with java and python implementation.