Implementation of CPU and a basic test bench