Development of the automatic procedures for spinor matrix element calculation with massive particles