added a median cut builder