Bilinear form [closed]

Write a function in Sage that accepts as input a symmetrical bilinear (not trivial) form B [caracterized by the associated matrix respect to the canonical base in R^n] and gives in output a vector subspace W ⊆ R^n such that:
- Dim W=n
- the restriction of B to WxW has maximum rank