theoretical reference---http://graphics.cs.cmu.edu/people/efros/research/quilting.html