--> Added pseudocode at the beginning
--> Added segmentation example
--> Other fixes