Second Maximum element of an array