added time testing and verification of both algorithm tests