Tests malloc for a few different scenarios.

Records time and memory consumed.

Compile with -DSTRATEGY=X to evaluate the custom malloc with strategy X - otherwise the standard malloc (from stdlib) is evaluated.