Update : algo assignment3 cpp