Added pseudomedian script from Gerstein group