Added notes on algorithm analysis