A Trick for Backpropagation of Linear Transformations