push and shift array functions implemented