Vector Class to simplify code for NelderMead.py