Enumerate all possible patches given a patch boundary. This is the code for my Master's thesis from 2007