recursive seems to be working.

Some problems about findFrequentItem in each loop.
working on it.
'done'