corrected cpp method signature for insert
lab4.cpp: made minor change.