Moved avg calculation to AverageMove class. Added tests for this class.
Refactored few data structures and related code. Enabled caching for market data retrieval.