Implement triangle subdivision.