work towards kd tree and semi-failed experiment for array based vector