Added spinForMemoryPack function

Added spinForMemoyPack function. Might need some debugging with degrees
vs radians.