fTangleType
The function fTangleType computes type of R-tangle, giving as the result 0 for atangle of type [0], 1 for tangle of type [1], and 2 for tangle of type [¥].