Added the first draft of the REM-detection algorithm.

View code changes | LSDBase entries