added cachegrind and fixed makefile