Functional Simulation for Unary Computing

We create UnarySim to simulate the functionality of unary computing in a cycle-accurate manner.