Added <limits.h> for INT_MAX in testing trees.