Construction of matrices of constant rank