Implement list_prepend. Used to prepend an element to the head of the list.