Added the majority formula
Merge pull request #25 from habdelra/majority-formula

Added the majority formula