initial implementation of reshape

work in progress