tiny fix : update max_label when add a sample into dataset.

tiny fix based on my understanding of dataset.