DEV: fix bugs in min and max and finally add BS and BSN function in muparser