Generic Programming and Library Design