added build in function for in place reverse