Added some linear hypothesis code