Building a prefix tree using TrieNode
Square root for a number using divide and conquer