Implement hill-climbing improvement - for LCOM1 and extracting class