Implemented and tested cycle counting for all instructions