Grayscale linear stretching program written in matlab