Represent 1D array by 2D grid
Added method for computing Time Gain Compensation