Added better vector class with standard functions for compatibility