Made many corrections

Vector and Matrix bugs worked out. Vector and matrices classes have been
implemented into the main.cpp file. Errors still exist in NNLS method
such as division by zero.