Added prev_f, changed vector to contain only one point

Signed-off-by: wsycharles0o <wsycharles0o@hotmail.com>