finished beta, V calculation for Newton basis in main.m