Maximum slice within an array of integers