Text this: Efficient algorithm for calculating short cycles in Tanner graph based on matrix computation