rm now takes a constant
Made generic map/fold/scan instructions, moved most math instructions to the library
Fixed bug in generic binary maps
further development of internal library, many bug fixes