Binary matrices with equal determinant and permanent