adding julia ports of existing matlab code