code reduced of insertion and deletion
a dispose method added to free the list elements
Priority Queue Added till insert