Max rect finding correct max area