Added a simple valgrind script for easier testing.