Added some limits for over-segmentation and some functions

1.changed seed selecting strategy
2.changed seed expanding strategy
3.Added some functions