Made max(list,int) private