maximize an n-dimensional landscape using the battleship search algorithm