Text this: Melody Feature Clustering and Optimization for Query-by-humming