Fixed intra_build_reference_border() local coordinate derivation

Removed redundant variables