use absolute bending angle
clean-up cross-bx sort algorithm