performance bug in doublearea
slightly better hash map in exterior edges