Fill the last row and column with 0 's
for ( long i = 0 ; i < n ; ++ i ) final_array [ ( int ) i , ( int ) n - 1 ] = final_array [ ( int ) n - 1 , ( int ) i ] = 0 ; for ( long i = 0 ; i < n ; ++ i ) { long t0 = final_array [ ( int ) i , ( int ) i ] ; long t1 = final_array [ ( int ) i , ( int ) n - 1 ] ;