Changed public modifier to private in recursively insert method