A Compressed Cyclic Reduction for QBD processes with Low-Rank Upper and Lower Transitions