Compare data not pointers

Made the insert method compare data, not pointers, when seeing if the
path should branch to the left or right.