added bam version of gamm for speed and memory handling. Seems to work well except might not be able to handle correlation structures