add pop() and push() c functions
add bounds for PUSH and POP