Implementation of the YIN algorithm for multidimensional data