Added optimization for fixed-size messages

Benchmark testing revealed the memory allocations were magnitudes slower
than the basic handwritten implementation.
Therefore, I added implementations for fixed-size messages to remain
comparable with the alternate solution. Unit tests are still required
and will be added before delivery to the master branch.