Nesting Problems: Exact and Heuristic Algorithms