Time complexities of algorithms