https://www.geeksforgeeks.org/weighted-job-scheduling-log-n-time/