add Makefile, speed up using clang optimization. Upgrade counter to uint64