added market data reference type and implemented optimized method of inserting the object.