Convert formulae to LaTex in xapian-core/docs and xapian-letor/docs

Converted the formulae to LaTex as referenced in this bit-size http://trac.xapian.org/wiki/ProjectIdeas#ConvertformulaetoLaTeX