replace_dt function

Fast value replacement in data frame