more work on bv algebraic solver (does not compile)