replace_bad_pixs function

Replace bad pixels in a spectrum