Added solution to minimum scalar product