initial commit
median function added