Fixed a bug with MapAlgorithm.
Removed *Double*, as it was becoming to cumbersome to maintain.