Bernstein approximation theorem