Efficient algorithms for melodic similarity in flamenco singing