Add search algorithm.
Add nested Friendship model.