Factoring a trinomial using box method