Changed some vector to memoryviews
Fixed index bug
Line break
Changed type to double
Changed type to double