fixed bug in increase_space() and decrease_space(). they weren't u[dating the head and tail