changed retrieve to get priorityQueue according to similarity
enabling normalization protection
bug fixes