Used CSR matrix to save even more space and time