CPU added

Functional CPU code added.