https://www.geeksforgeeks.org/assembly-line-scheduling-dp-34/