Kdtree subset query

@rgommers 
#4260 was merged despite not having any commits inside... So I am reissuing a PR

This indentation is not PEP8 compliant, should be (incl spaces added)

    self.__build(idx[greater_idx], maxes, greatermins),
                 idx)