Realisation  of three frequence algorithms.
Print method added