barebones implementation for sleepsort algorithm