added cmp and shuffle primitives to the basis library

also added load and store array as primitives, but for some reason I get
a type error if I actually use them, so I still have some work to do there