To run the  code:

1) Put all the files in one folder.
2) Set Matlab workspace to be the folder You created.
3) Compile .cpp files by writing: 
   mex quickmatrix.cpp
   and then:
   mex fast_k_bound.cpp quickmatrix.cpp 
   in the Matlab command window
4) Run script_LR by writing: script_LR in the Matlab command window.
