using AbstractAlgebra
F = GF(2)
A = rand([0, 1], 5, 5) 
B = matrix(F, A) # Convert to GF(2) matrix
rref(B)