code style updated. to lowtriangilar method implemented