Fixed Dot Product function