Added new file for boundsCheckOptimisations

File contains templated functions to handle bounds check optimisations.
Added template file to library_ops

Allows me make the file visible to outside functions.
Added test functions for checkDims method

Function currently tests two dimensional arrays.