implement FindMoreThanHalf and FindSmallestDifference solutions