triangular distribution implemented