Created crowdsum algorithm