Implemented Optimised Revised Reference Shift

Revised Reference Shift Algorithm. Increased Performance.