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