Reimplemented map! in terms of each_with_index :)