Odd and even bit shifting algorithm done