Fixed all data formating and storage, least_cost_path needs implementation