runs with incorrect data output
all functions accept new parameter
various sorting algorithms