add pca/gram to IndexedRowMatrix
add toBreeze to DistributedMatrix for test
simplify tests