equitable doctrine of subrogation — Legal Definition, Examples & Cases