Has a really slow but correct triangle replacement, use some fancy arraylist stuff