Add forestToBinaryTree method for EKTree and Prim Algorithm for EKGraph