implem for prepend with P

also added a new private member for a priority list