Improvement on songify algorithm