An implementation of k-d forests