Added method to calculate transformation map.
This is work still in progress. TODO list has been added which would be
addressed in future commits.