Implement stack using built-in array