Added a destructor to pattern class
Changed the build shape for loop to memset between 2 vectors to theoretically boos preformance