Saving, "linear" distance map, tests
Distance map bug fixes, training classifier bug fixes.