The answers to stop streams should be more than a link, but your question cannot be answered less than a good, full-sized scientific article. Go directly to the source:
Here you will find a detailed description of the algorithm. Find the "OpenSURF Library Notes" pdf.
source share