Parallel low-complexity lossless coding of three-dimensional medical images