Change language C into C++: change Makefile and change malloc/free into new/delete