Now does 20 solves per iteration while writing to UIView only once. That's 800 solves per second at 40fps on a 640 * 640 grid :)