Append to head or tail

Remove head or tail