Added hash compare sample
Implemented rotation