extracted out bilinear solve method into a method. Also breaking as soon as a rank 1 solution is found now.
moved solveBilinear to its own file; added a check on the w -> W thing
moved general purpose stuff to util. Added check for whether constraint is really bilinear to solveBilinear.