replaced sparse array with Array2D, started testing with