added some SSE optimized code for MC