add variant of copyFrom method for raw memory blocks in BamAlignment class