[algorithms][multi] Move the code of some algorithms from multi/ dir and drop TypeOf dependency.

Modified algorithms: area, centroid, clear, convert, length, perimeter, simplify.
Update included headers paths to reflect the changes.