Analysis of Nonrecursive algorithms