Pipe wrench for tight spaces