Added sylvester for 2D vector calcing and implemented bouncing