Implemented a general rightshift