added function to find highest cost in an array of elevators