Bogo sort in scala