Refactored project file structure. Fixed a bug in Heuristica. Refactored other classes.