Added support for missing values (if Y value is NaN it is not drawn, datapoint between two NaN values are drawn as a dot)
Added buffered drawing (great performance improvement!)