Encapulate BAM indexing in a single function and switch to using sambamba for indexing to make use of multiple cores