Reduce with memo
Each with next, filter and find
Some minor functions