Added condition to only collapse if it improves the Linf norm of quality. Added optional parameter to delete very poor elements.
Remove redundant code.
Added implementaion for apply_max_aspect_ratio in 3D
Replace first smooth iteration with l-inf optimisation; added stocastic (hail mary) optimisation kernel (ya...doesn't help).
adjustments to the main adapt loop.