added: exercise 1 & 2 of chapter 3
finish exercise 4 of chapter 9
find intersection of two segments
merge