Update CFD.py

Made major modification to lookup algorithm