add functions for maximium of a specific row or column