Sped-up random matrix creation

coo_matrix is faster than lil_matrix in create_random_mat