BogoSort in Scala