Directly create coo_matrix more efficiently than scipy.sparse does