solve "Minimum Scalar Product"