Added O(n*log n) search for ML value of X. Need to refactor some functions
still.