Algorithm For Detecting Clear Sky Images