first pass at complete Algorithm C
code nearly complete
Merge branch 'master' of github.com:cambridgehackers/xbsv