Optimised as many foreach's to counts as possible for max performance in those loops.
Created a new ProcessTangent function that takes input from the various Tangent Presses/Releases and sends that to the plugin. This was due to the shared code between the various functions.
Merge pull request #523 from CorruptedHeart/Optimisations

Optimisations