forked from: Marching Squares Algorithm

Marching Squares algorithm - could be optimised, I guess
(By that I don't mean slapping Vectors all over the shop)

Click to sample an area for outline mapping

based on:
http://en.wikipedia.org/wiki/Marching_squares

@author Aaron Steed, nitrome.com