Convergence and quasi-optimal complexity of a simple adaptive finite element method