make generic expanding array data structure. close #62