cs-completer: improved automatic solution detection
cs-completer: Fixed complexity on solution detection
cs-completer: Added tests for solution detection