Fixed typo in comments
Fixed indentation
Initial implementation of PatchToCumulativeMap