New way of calculating mode in stats calculator