Update c version

Rename to C++
Add Makefile
Optimize lambda calls