the implementation of guo-hall-thinning algorithm