added .gitignore
small edits to bam.lua
faster implementation of popcnt