Updated the pixel_sort to grow by adj, plot semilog std vs. #pixels, find timeseries for each pixel mask, and general optimization