Program to find maximum element in an array