A fast algorithm to construct a representation for transversal matroids