Added basic timecomplexity functionality- still needs work