ffforked from: Binary Squares

