Optimized solution for CodeEval's The Major Element challenge
Since the original was using to much memory 14mb and twice the runtime (600ms), which was negatively impacting my score.

https://www.codeeval.com/open_challenges/132/