Improved speed of Bogosort testing