__max routine added
__max test case added