Sloppy but functional ternary computer sim