Find rank of matrix (#687)

Find rank of matrix (#687)

Number of non‑zero rows in row echelon form.