Minimum scalar product