Finding largest element in the array