Implement Sparse Matrix Using Array In Javascript Functions W3schools