Code and notes on algos