Update of Date and weighted median function in summarizeSGP