Now keep the updated points as a matrix C
Added read_file_perimeter.m