Initial version of square finder