Wrote contour detection algorithm and started implementing shape classes

Signed-off-by: Tushar Pankaj <tushar.s.pankaj@gmail.com>
Fixed warnings

Signed-off-by: Tushar Pankaj <tushar.s.pankaj@gmail.com>