Added a function to choose best attribute to perform a split