A Warp Speed Chain-Code Algorithm Based on Binary Decision Trees