implement arithmetic-shift

fixes #114