Functions and algorithm for tweet mining

Functions and algorithm for tweet winning