Assignment 1 for CMSC 401, Majority Element implementation