Driver code
var mat = [ [ 1 , 1 , 2 ] , [ 3 , 4 , 6 ] , [ 5 , 3 , 2 ] ] ; var arr = [ new Cell ( 0 , 0 ) , new Cell ( 1 , 1 ) , new Cell ( 0 , 1 ) ] ; var n = arr . length ; printSums ( mat , arr , n ) ;