Added tests to Matrix class and prototype time measurement for kernel