Added a Scala implementation of the "The Major Element" problem