added the ignore file to ~ files
wrote the double and add algorithm