SMS: The tensor network theory library