basic implementation of set_values (without iterators!)
add setter for distributet indices, tests, comments and fix some bugs