Compiled with -Wall and fixed warnings.
Added a bunch of structures and overloads needed for generating the pruning table.