added dotProdcut(), calculatE(), isAlphaOptimal(), and LHCalculator()