First draft of finding best horizontal and vertical seams

This draft is fairly fast for computation on the fly - around 3
milliseconds. I'll experiment with whether it's worth it to cache these
seams.