Due to many number of 0 s in the 2D array storage is wasted and performance is minimized find another better alternative.