Replaced pointers to copies, indexes to iterators
Merge branch 'medici-with-copies' of github.com:mexus/medici2 into medici-with-copies