Storing Sparce Matrices with arrays