MatSat: a matrix-based differentiable SAT solver