Add in some vlad algorithms. Prettify math section, borrow things from existing tcr.