A memory device is proposed. The memory device includes a plurality of memory cells, means for comparing a set of selected memory cells with at least one reference cell having a predefined threshold voltage, the means for comparing including biasing means for applying a biasing voltage