bugfix in SegtoDecimal() and implement angDist()
PosMatch() and angDist() bugfix