add minimum and maximum element getters to array