Implemented bogosorter