Moved header files into core,algorithms and patterns. Updated source accordingly