Big-O (Theta) analysis basics