The one dimensional infinite square well with variable mass