/* This algorithm does variable left rotation on variable register size (up to 32 bit)

R: register size n: value d: rotation constant

*/