fixed bug - bogosort with a singleton method