Use Template to solve max of different types( with different size of the types)