Added push and shift data for simple handling of dynamic data

Added push and shift data for simple handling of dynamic data. You just need to push new data and you can shift the old data.