Add a copy method to sortedmap
move sortedmap to the new datastructures directory