Implemented simpler (possibly faster) set values slice.