added an iterator implementation, currently segfaults...