hevc: implement reference handling, use MC for P blocks