something
compute maximum between 2 elements and then n elements