Bug fixes in std deviation, distance and estimate
Moved old program version in other folder for clarity