Added max column wise and tests.