[algorithms][extensions] Add detail flattening() algorithm and use it in andoyer and vincenty strategies.