add list_remove_first and list_remove_last method