Sketch Recognition Algorithms for Comparing Complex and Unpredictable Shapes