Correcting the False Nearest Neighbors algorithm

Correcting algorithm of FNN, the second condition, the thats detects random time
series was not working.
Also refactored the code
Added tests with Lorenz and white noise