add longest_arithmetic_sequence_n_square