This class implements an objective-C version of YIN algorithm