Theory of minimal surfaces and a counter-example to the Bernstein conjecture in high dimensions