pseudocoded min skew