dir 'algorithm' and 'graph' moved into 'core' (by renaming dir)