missing files, monotone chain algorithm