added Makefile and test.cpp