Splitting up VM functions into outside primitives.
Added pop function.
Moved all the primitives to separate module.