Define common compressor function for leftward shifts with two Integers