Majority Element

Given an array of size n, find the majority element. The majority element is the element that appears more than [n/2] times.
The first commit was a normal solution.