Improved 'insert at back' and 'delete from back'

Improved 'insert at back' and 'delete from back' functionality. Still
need bug fixing though.