shift, and unshift methods, added value encoding to put