Set algorithms

Added algorithms and tests for the remaining set algorithms..