Added code in for whittening and lots of notes on FLANN