Added kdTree and quickSelect (unfinished)