Implemented division with right shift