A function to find the optimal combination of first two splits, and the corresponding Q-between given the first split
Useful links