Optimal Binary Search Tree In C