use cache head and tail

Link: http://stackoverflow.com/questions/14707803/line-size-of-l1-and-l2-caches
Link: http://psy-lob-saw.blogspot.com/2013/03/single-producerconsumer-lock-free-queue.html
Link: https://github.com/GeneAssembly/biosal/issues/315
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>