initial notes on algorithm