stack

stack implementaton in both js and c.