The elements of statistical learning : data mining, inference, and prediction