Density Estimation via Discrepancy Based Adaptive Sequential Partition