check memory assignment

Adding fix to bug https://github.com/PacificBiosciences/blasr/issues/41