add in dynamic programming solution for event scheduling