Sort:  

Thank you Rifkan, the FFT method is pretty amazing I think.