Added .editorconfig to address the inconsistencies among different editors. Now, every editor which supports Editorconfig will render the code correctly. I realized that the tabs used in the code should be interpreted as 8 spaces.
Modified the .gitignore to support coding on Mac OS and CLion.
Here are the changes: