multi thread implementation of guassian elemination