added gm_seq using std::vector
added gm_seq using std::vector
replaced iterator-macro with template