Added pop operation and fixed stack top address.