kd-tree implementation

This is an implementation of simple kd-tree. It requires fresh Distance package with implementation of 1D distances (it is already in code base but I do not know how long it will take release proper new version). So, Pkg.checkout("Distance") should help.