Set of primitives for working with LEGO Mindstorm NXT brick