toSparseM function

Convert the plpData in COO format into a sparse R matrix