Closes #6. Calculate Mode.