Added support ffor polymorphism and made percentile_disc polymorphic