Implement BitOps for TreeSet