add profiler.
add Makefile for testing.