First commit from algo notes

this will move towards a python script as the higher level parts are worked out.