The correlation dimension of stationary time series with application to the heartbeat analysis