Added tree printing and fixed aggressive fitness caching