done algo notes on chapter (except hashing)