simple script for d' calculation