fix combination logic bug where wrap around wasn't being handled
correctly, and improve logic for finding valid service sets to
avoid repeat service sets and reduce amount of data copying.
adding some comments.
Merge pull request #147 from continuuity/feature/improve-service-set-performance

Feature/improve service set performance