add test prog
small changes
Merge branch 'master' of github.com:stephentu/counting-networks
simplify balancers by using more memory
some small optimizations
inline traverse