Added publish() call to BogoSort