Shift operations implementation