A closed form solution of Bernoullian two-classes priority queue