Computing F score