Update SimpleOperations.cpp

removed all bugs and gave proper variable names