Las Vegas Algorithm for single inheritance