Solving recurrence relations: master method