PHP implementation of an integer stack with added O(1) minimum element retrieval