added cpu.c, modified make file. cpu.cpp is still kept as backup.