implement bogosort