Transform Coordinate(COO) Sparse Matrix format to Spark sparse matrix