Add gitignore
Complete library rewrite to improve performances