Good job "emulating" the iTunes algorithm. Request to op: It would have been good to have some sample code inline in the article that illustrated the algorithm. I know there's an Xcode project attached, but reading this on an iPad has its limitations.
Some pictures would have helped too, considering not everyone has iTunes, and it's an article about a visual feature. OP could have tried out the new Gist to display code too
Edit: I meant pictures of the existing Apple implementation to see what they were on about. I see the pictures of their algorithm but it makes no sense to talk about the comparison when there's nothing to compare to