Write a Python function that implements a hard voting classifier, an ensemble method that combines predictions from multiple base classifiers using majority vote.
Given a 2D list predictions where predictions[i][j] represents the class prediction from classifier i for sample j, return a list of final predictions. Each sample's final class is determined by counting votes from all classifiers and selecting the class with the most votes.
If there is a tie (multiple classes receive the same highest number of votes), return the smallest class label among the tied classes.
Input:
predictions: A 2D list of integers where rows are classifiers and columns are samplesOutput: