MASTER THEOREM to solve recurrence relations