Python implementation of Interval Scheduling and Longest Common Subsequence