Implented siple linewidthalgorithm. Not very beautifull, but works.
Transform size adapts to periodelenght
findSamplesize's accuracy needs to be limited, as it becomes a bootleneck for large periodes.