adding more works to bayes
factor code
adding an implementation for priority queue