added .dat to gitignore
made some speed testing/optimization