Added core algorithm
removed swp files
Finished Core Algorithm