The transition matrix approach to selfavoiding walks