12.1 & 12.2

Prim's algorithm  and KMP-algorithm