With the march of technology, law firms face a profit problem if two trends persist.