addded getSubGrid function to Grid class family