I am new to Scala and would like know How to implement the header for a Map and/for a Set. As an example I implemented the one for Binary tree in the following way :