FIX: Modified Gauss method

Signed-off-by: Nikita 'webconn' Maslov <wkernelteam@gmail.com>