small fixes of homework 2

- added 'const boost::uint32_t' in 2_5; 
- added checking that 'mean_mes_for_all_time !=0' in 2_5;
- moved '2' to constants in market_message.cpp