An Efficient Algorithm for Processing Partialmax/min Queries in OLAP