Intrinsic Dimension of Data: An Approach based on Grassberger-Procaccia Algorithm