Optimise first scalar product

Signed-off-by: Axel Davy <axel.davy@ens.fr>