optimizing inner product vector calc; updating unit tests