Longest span with same sum in two binary arrays