move @inbounds to the beginning of the if-else block (for sum_seq)