implemented p2StackWithRandomAccess