Adopted std::index_sequence.
Added curry_v3