- Add Christian Jensen's low-level optimizations. Thanks for the suggestions!
- Corner pattern handling bug fix.