Changed array.fill to std::fill in directMultiply.