outline time complexity for major routines