Updates IBS's UpdateMaximumOverlap so it doesn't use an extra array and LINQ's max, but only uses a single extra integer