Took out library and added all necessary external code to aima package.