First implementation of bogo sort