Added tract length calculation in conmat