Updated algorithm

Added core module and added Node Class