efficiency of an algorithm is measured by