Implements the construction in the paper "Matrix Factorizations in Higher Codimension" by Eisenbud and Peeva.
The object koszulExtension is a method function.