Enhanced algorithm to fill playlist