Matrix biorthogonal polynomials, associated polynomials and functions of the second kind