Remove duplicated dot product code. Use dsputil's