Solving Jigsaw Puzzles using Paths and Cycles (BMVC 2014)