All tests now passing; LinearMachine fully implemented