Implement missing buildIndex(const Matrix<ElementType>& dataset) for KDTreeCuda3dIndex, and fix typo in comments.