Tech innovation can save law firms in the squeezed middle