Reducing dimensionality for prediction of genome-wide breeding values