Return curve info along with curve cost
Merge branch 'dev' of https://github.com/PetterS/curve_extraction into dev

Conflicts:
	matlab/Curve_extraction.m
	matlab/library/curve_info_mex.cpp