Added Memory output to CPU toString method
Added toString method to Memory
Fixed N and Z flags being checked after both ALU and Shifter operations.