adds a decorator in python to monitor the time each sorting function takes