Substitution to find running times of algorithms.