Efficient Construction of 2-Chains with a Prescribed Boundary