a prolog based nursing scheduler