intra-prediction speed improvement for border pixel extraction