Refine inline-excercise.py

The script will now search for a good set of constants for both the
linear and the logarithmic heuristic.
Add ability to pass builddir to inline-excercise