optimize code; fix bug
Merge branch 'master' of https://github.com/fxsjy/miniseg