Remove expand paramater and implement Google Partial Response

Submission for https://www.topcoder.com/challenge-details/30047003/