added functions from numerical techniques class