start working on dominance function
wrote dominance algorithm -- it is rather slow...