Adding some functions to the ByteArray class: push, pop, shift, unshift