fix tic/toc in kmeans, logreg and add missing mirror for DenseMatrixMapRowsToVector