D impl of gaussian elemination for eduacative puroses