Added tasks 5.1, some trying in 5.2 and Jarvis' algorithm