Finished the rest of the list functions
implemented max and min