Ruby debt-based scheduling implementation