Add checked memory allocation helpers.
Use realloc() to grow Vectors.
Add binary tree stuff.

Piggyback min()/max() syntax fixes.