added basic scoring function for alignment