Using AREPLACE instruction for array_push() and array_unshift()