Fixed bug in example_1.py caused by .sort() having no return value
Fixed bug in example_2.py caused by values and new_values pointing to same list
Fixed bug in example_3.py caused by wrong order of arguments in trapz
Fixed bug in example_4.py caused by y and y_new pointing to same array