Implementing Gap statistic for clustering number estimation