Make max sum of sub array for a 2-dimensional array into a GUI form