Simple implementation of a Register Machine.