Implemented getMajorityPrediction
Removed obsolete isSameAs method