Boggle game using ternary search trees and supporting data structures